﻿using lwzlz.Web.Html;
using System.Web.Mvc;

namespace BMOA.Web.Areas.Company
{
    public class StudyAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Study";
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="context"></param>
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                AreaName + "_default",
                AreaName + "/{controller}/{action}/{id}",
                new { area = AreaName, controller = "Home", action = "Index", id = UrlParameter.Optional, culture = new CityRouteConstraint() },
                new string[] { $"lwzlz.Web.Areas.{AreaName}.Controllers" }
            );
        }
    }
}